// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import store from './vuex'
// import css
import 'vue-beauty/package/style/vue-beauty.min.css'
import vueBeauty from 'vue-beauty'
import axios from 'axios'
import storage from '@/utils/storage'

import { baseDomain } from '@/env.js'
axios.defaults.baseURL = baseDomain
axios.defaults.headers.common['Authorization'] = `Bearer ${storage.getItem('token')}`
axios.defaults.headers.common['Content-Type'] = 'application/json'

Vue.prototype.$http = axios

Vue.config.productionTip = false
Vue.use(vueBeauty)
/* eslint-disable no-new */
new Vue({
  store,
  router
}).$mount('#app')
